\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject}{\section{\-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object \-Class \-Reference}
\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject}\index{\-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object@{\-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object}}
}


\-Object to store.  


\-Inheritance diagram for \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classRestAPI_1_1amazon_1_1S3_1_1FileObject}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_aaa1c11c01850529f8a8cb4ac67440125}{\-\_\-\-\_\-init\-\_\-\-\_\-}
\begin{DoxyCompactList}\small\item\em \-Init a remote \-File \-Object inside a bucket. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_acb46cfdb5076fd71fc39a15e8fba342f}{add\-Version}
\begin{DoxyCompactList}\small\item\em \-Add a verion to the file object. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a704375bf37af645711e353cbd95cf429}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a704375bf37af645711e353cbd95cf429}{existed}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a704375bf37af645711e353cbd95cf429}

\begin{DoxyCompactList}\small\item\em \-Check if this file object exists inside a \hyperlink{namespaceS3}{\-S3} bucket. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad68bf7019ee5b7c08d7263522e87aa3d}{chmod}
\begin{DoxyCompactList}\small\item\em \-Change the access control list of the current file object. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a4488512e5d71897212c80a85e7af0747}{delete}
\begin{DoxyCompactList}\small\item\em \-Delete the file object from the remote server. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ae4c66b2c4a1dc8635c65ceb2327b627f}{url}
\begin{DoxyCompactList}\small\item\em \-Get the temporary \-U\-R\-L to access the protected resource. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a179770be78a633bfc366dcf54296d562}{uploader}
\begin{DoxyCompactList}\small\item\em \-Upload large files one chunck at a time using multipart. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad7b82cf85d81fbca3b224dc610be256f}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad7b82cf85d81fbca3b224dc610be256f}{finish\-Upload}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad7b82cf85d81fbca3b224dc610be256f}

\begin{DoxyCompactList}\small\item\em \-Continue unfinished multipart upload. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a2ad8e22fddd1259f2edab3ecd7ecae48}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a2ad8e22fddd1259f2edab3ecd7ecae48}{upload\-Form}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a2ad8e22fddd1259f2edab3ecd7ecae48}

\begin{DoxyCompactList}\small\item\em \-Get the upload form for \-Browser upload. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a6acee01f07127652ef584eac845c5d9f}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a6acee01f07127652ef584eac845c5d9f}{save}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a6acee01f07127652ef584eac845c5d9f}

\begin{DoxyCompactList}\small\item\em \-Save the content to local file. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a7562dedb5f08ee45c2167cfa1c4bca92}{def {\bfseries content}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a7562dedb5f08ee45c2167cfa1c4bca92}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_abe67c680bf25a0fab0e26bbd2a30c878}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_abe67c680bf25a0fab0e26bbd2a30c878}{upload}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_abe67c680bf25a0fab0e26bbd2a30c878}

\begin{DoxyCompactList}\small\item\em \-Upload the content of local file to the \-File object on remote server. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a85511ffd90c357f33efb69a6cbc5455e}{sync}
\begin{DoxyCompactList}\small\item\em \-Check if the file in remote(target) and local(source) is the same. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_add8beaac77a2852765ca2a56636d3e76}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_add8beaac77a2852765ca2a56636d3e76}{download}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_add8beaac77a2852765ca2a56636d3e76}

\begin{DoxyCompactList}\small\item\em \-Download the file and store the content in memory. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a2437ba0d210f9d433f5e52455b6cf2d9}{torrent}
\begin{DoxyCompactList}\small\item\em \-Get the torrent for downloading the file. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a7039a167ecbbc15a850f15ead7d31cb9}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a7039a167ecbbc15a850f15ead7d31cb9}{update\-Info}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a7039a167ecbbc15a850f15ead7d31cb9}

\begin{DoxyCompactList}\small\item\em \-Get the information about the current \-File \-Object from remote. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ade537726ad0e4d2a28ada965105a83d3}{def {\bfseries get\-Version\-Info}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ade537726ad0e4d2a28ada965105a83d3}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a8b992eaf0e28793691417d2982a91f77}{def {\bfseries versions}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a8b992eaf0e28793691417d2982a91f77}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ae877a8eb98bdf11405764822810fb4b0}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ae877a8eb98bdf11405764822810fb4b0}{revision}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ae877a8eb98bdf11405764822810fb4b0}

\begin{DoxyCompactList}\small\item\em \-Return the revision number of current version. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad046fe5072f3b4e0a838767465caecf9}{use\-Version}
\begin{DoxyCompactList}\small\item\em \-Change the file object to a specific version. \end{DoxyCompactList}\item 
def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ac40bdb9fe079b587989e36e50fb28e47}{use\-Revision}
\begin{DoxyCompactList}\small\item\em \-Change the file object to a specific version. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ab20e2d8a4566a4d6c2327ebf67406453}{def \hyperlink{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ab20e2d8a4566a4d6c2327ebf67406453}{roll\-\_\-back}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ab20e2d8a4566a4d6c2327ebf67406453}

\begin{DoxyCompactList}\small\item\em \-Use the current selected version as the remote file \-Object latest version. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a14a5bd91ece94528c7d6ed863563e880}{def {\bfseries \-\_\-\-\_\-repr\-\_\-\-\_\-}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a14a5bd91ece94528c7d6ed863563e880}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a87fa9b131ac599c5b107ccf0634ffc56}{def {\bfseries \-\_\-\-\_\-str\-\_\-\-\_\-}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a87fa9b131ac599c5b107ccf0634ffc56}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSservice_a5f315411ab9dbc513a5c377b1ed285e0}{def \hyperlink{classRestAPI_1_1amazon_1_1service_1_1AWSservice_a5f315411ab9dbc513a5c377b1ed285e0}{set\-Owner}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSservice_a5f315411ab9dbc513a5c377b1ed285e0}

\begin{DoxyCompactList}\small\item\em \-Set the owner of the \-A\-W\-S service. \end{DoxyCompactList}\item 
\hypertarget{classRestAPI_1_1amazon_1_1service_1_1AWSservice_a360415be2c893aeedf1aad20ae5b71ad}{def \hyperlink{classRestAPI_1_1amazon_1_1service_1_1AWSservice_a360415be2c893aeedf1aad20ae5b71ad}{set\-Credential}}\label{classRestAPI_1_1amazon_1_1service_1_1AWSservice_a360415be2c893aeedf1aad20ae5b71ad}

\begin{DoxyCompactList}\small\item\em \-Set the credential information of the current bucket. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{\-Public \-Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a25c601bf49b2d5d0b5e4d64a7d590d53}{{\bfseries target}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a25c601bf49b2d5d0b5e4d64a7d590d53}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a17e3a6fe5b2dbc65c00dd178795801f8}{{\bfseries content}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a17e3a6fe5b2dbc65c00dd178795801f8}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_af1b67c2a618cbfff59c1aac8dc7a0afe}{{\bfseries parent\-Bucket}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_af1b67c2a618cbfff59c1aac8dc7a0afe}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_aba1a20d7307c4066c7657ff567dcbed1}{{\bfseries \-Auth\-Key}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_aba1a20d7307c4066c7657ff567dcbed1}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a618a3869fe4e43468254313d28f5221b}{{\bfseries \-Secret\-Access\-Key}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a618a3869fe4e43468254313d28f5221b}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ac2635e7c26d21baf4bbb20d3bcb628a3}{{\bfseries security\-Token}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ac2635e7c26d21baf4bbb20d3bcb628a3}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a11a29ec248ea4b0c9ecae41ae4518098}{{\bfseries host}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a11a29ec248ea4b0c9ecae41ae4518098}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a1e84ae490e41e53c4c3bd4a4575100d6}{{\bfseries deleted}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a1e84ae490e41e53c4c3bd4a4575100d6}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a8fdf168d996884dd0e531baafafb9683}{{\bfseries deleted\-At}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a8fdf168d996884dd0e531baafafb9683}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a92422f01340b3305b9eb88e1249e1f62}{{\bfseries latest}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a92422f01340b3305b9eb88e1249e1f62}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ab8b3ce1b7a524964cc0cff7a479bf11e}{{\bfseries current\-Version}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ab8b3ce1b7a524964cc0cff7a479bf11e}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a0421c5345311bd9b3ceeb7bcb75cda0a}{{\bfseries etag}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a0421c5345311bd9b3ceeb7bcb75cda0a}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a6824adfcb0215654d2e0dc6c6a6d81bb}{{\bfseries size}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a6824adfcb0215654d2e0dc6c6a6d81bb}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ada1b51487166c35d8d4e6ab63a9b69e1}{{\bfseries version\-I\-D}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ada1b51487166c35d8d4e6ab63a9b69e1}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a816d848b93778d21b879250c401be305}{{\bfseries last\-Modified}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a816d848b93778d21b879250c401be305}

\item 
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a346e29d99343829488a227b52622e206}{{\bfseries existed\-Remote}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a346e29d99343829488a227b52622e206}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Object to store. 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_aaa1c11c01850529f8a8cb4ac67440125}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}}
\index{\-\_\-\-\_\-init\-\_\-\-\_\-@{\-\_\-\-\_\-init\-\_\-\-\_\-}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{\-\_\-\-\_\-init\-\_\-\-\_\-}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-\_\-\-\_\-init\-\_\-\-\_\-} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{name, }
\item[{}]{parent\-Bucket = {\ttfamily \-None}, }
\item[{}]{content = {\ttfamily \-None}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_aaa1c11c01850529f8a8cb4ac67440125}


\-Init a remote \-File \-Object inside a bucket. 

\-You can latter upload/download/sync to/from local file. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_acb46cfdb5076fd71fc39a15e8fba342f}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!add\-Version@{add\-Version}}
\index{add\-Version@{add\-Version}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{add\-Version}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-add\-Version} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{version\-I\-D, }
\item[{}]{last\-Modified, }
\item[{}]{etag = {\ttfamily \-None}, }
\item[{}]{size = {\ttfamily \-None}, }
\item[{}]{is\-Latest = {\ttfamily \-True}, }
\item[{}]{\-Delete\-Marker = {\ttfamily \-False}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_acb46cfdb5076fd71fc39a15e8fba342f}


\-Add a verion to the file object. 

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad68bf7019ee5b7c08d7263522e87aa3d}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!chmod@{chmod}}
\index{chmod@{chmod}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{chmod}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-chmod} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{acl}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad68bf7019ee5b7c08d7263522e87aa3d}


\-Change the access control list of the current file object. 

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a4488512e5d71897212c80a85e7af0747}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!delete@{delete}}
\index{delete@{delete}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{delete}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-delete} (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a4488512e5d71897212c80a85e7af0747}


\-Delete the file object from the remote server. 

\hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a85511ffd90c357f33efb69a6cbc5455e}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!sync@{sync}}
\index{sync@{sync}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{sync}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-sync} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{source}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a85511ffd90c357f33efb69a6cbc5455e}


\-Check if the file in remote(target) and local(source) is the same. 

\-If they are different, upload/download the file to make them consistent. \-Is it possible to store files in piece on remote server so that we can rsync? better performance(lower brandwidth) but more complicated. \hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a2437ba0d210f9d433f5e52455b6cf2d9}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!torrent@{torrent}}
\index{torrent@{torrent}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{torrent}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-torrent} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{torrent\-File = {\ttfamily \-None}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a2437ba0d210f9d433f5e52455b6cf2d9}


\-Get the torrent for downloading the file. 

\-Return the torrent content if torrent\-File name is not specified. \hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a179770be78a633bfc366dcf54296d562}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!uploader@{uploader}}
\index{uploader@{uploader}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{uploader}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-uploader} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{sourcefname, }
\item[{}]{chuck\-Size = {\ttfamily 1024}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_a179770be78a633bfc366dcf54296d562}


\-Upload large files one chunck at a time using multipart. 

\-Skip the already uploaded part. \hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ae4c66b2c4a1dc8635c65ceb2327b627f}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!url@{url}}
\index{url@{url}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{url}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-url} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{expires = {\ttfamily '1hour'}}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ae4c66b2c4a1dc8635c65ceb2327b627f}


\-Get the temporary \-U\-R\-L to access the protected resource. 

\-The expiration time can be 1-\/3 hours. \hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ac40bdb9fe079b587989e36e50fb28e47}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!use\-Revision@{use\-Revision}}
\index{use\-Revision@{use\-Revision}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{use\-Revision}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-use\-Revision} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{revision}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ac40bdb9fe079b587989e36e50fb28e47}


\-Change the file object to a specific version. 

\-Example\-: use\-Revision(19) use\-Revision('r19') use\-Revision('first') use\-Revision('last') \hypertarget{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad046fe5072f3b4e0a838767465caecf9}{\index{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}!use\-Version@{use\-Version}}
\index{use\-Version@{use\-Version}!RestAPI::amazon::S3::FileObject@{\-Rest\-A\-P\-I\-::amazon\-::\-S3\-::\-File\-Object}}
\subsubsection[{use\-Version}]{\setlength{\rightskip}{0pt plus 5cm}def {\bf \-Rest\-A\-P\-I.\-amazon.\-S3.\-File\-Object.\-use\-Version} (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{version\-I\-D}
\end{DoxyParamCaption}
)}}\label{classRestAPI_1_1amazon_1_1S3_1_1FileObject_ad046fe5072f3b4e0a838767465caecf9}


\-Change the file object to a specific version. 

\-Example\-: 

\-The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
amazon/\-S3.\-py\end{DoxyCompactItemize}
